package com.mycat.service.ucenter;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.mycat.dao.entity.ucenter.Customer;

public interface CustomerService {

    /**
     * 保存当前对象,并返回主键ID
     *
     * @param customer Customer
     */
    void save(Customer customer);

    /**
     * 修改当前对象
     *
     * @param customer Customer
     */
    void edit(Customer customer);

    /**
     * 根据主键Id删除数据
     *
     * @param ids 主键集合
     */
    void delete(Integer[] ids);

    /**
     * 根据Id获取当前对象
     *
     * @param id 主键ID
     * @return Customer
     */
    Customer findCustomer(Integer id);

    /**
     * 查询用户
     * @param customer Customer
     * @return Customer
     */
    Customer findCustomer(Customer customer);

    /**
     * 分页获取Customer列表
     *
     * @param page Page<Customer>
     * @return PageInfo<Customer>
     */
    PageInfo<Customer> page(Page<Customer> page);

}